<?php

declare(strict_types=1);

namespace App\Common\Modular\Administer\Model;

use Core\Basics\BasicsModel;
use Hyperf\Database\Model\SoftDeletes;
use Zms\HyperfCasts\StrtotimeCasts;

/**
 * @property int $id
 * @property string $name 名称
 * @property int $status 状态
 * @property string $remarks 备注信息
 * @property int $sort 排序
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 * @property ?int $deleted_at 删除状态
 */
class JobModel extends BasicsModel
{
    use SoftDeletes;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'administer_job';

    protected array $hidden=[

    ];

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = [];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = [
        'id' => 'int',
        'status' => 'integer',
        'sort' => 'integer',
        'created_at' => StrtotimeCasts::class,
        'updated_at' => StrtotimeCasts::class
    ];
}
